﻿using UnityEngine;
using System.Collections;

public class LoadDoor : MonoBehaviour 
{
    public float percentageLoaded = 0;
    public string message; 

    void Start()
    {

    }
	
	void Update () 
    {
        if (Application.GetStreamProgressForLevel("Game") == 1)
            message = "Level 1 has been fully streamed!";
        else
        {
            percentageLoaded = Application.GetStreamProgressForLevel("Game") * 100;
            message = percentageLoaded.ToString();
        }
	}
}
